<?php

include(realpath(dirname(__FILE__).'/configs/env.php'));

$paths = explode(PATH_SEPARATOR, get_include_path());
array_unshift($paths, INCLUDE_PATH);

set_include_path(implode(PATH_SEPARATOR, $paths));

error_reporting(ERROR_LEVEL);

if (defined('EXCEPTION_HANDLER') && EXCEPTION_HANDLER) {
    include_once 'Workset/Exception/Handler.php';
    Workset_Exception_Handler::registerHandler(EXCEPTION_HANDLER);
}

if (!defined('PHPLIB_INCLUDED') || PHPLIB_INCLUDED !== true) {
    require_once 'phplib.php';
}

require_once 'Zend/Loader/Autoloader.php';

Zend_Loader_Autoloader::getInstance();
